<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>for 循环</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>usrId</th>
            <th>usrName</th>
            <th>index</th>
        </tr>
        <tr th:each="SysUser,status : ${users}">
            <td th:text="${SysUser.usrId}">Id</td>
            <td th:text="${SysUser.usrName}">姓名</td>
            <td th:text="${status.index}">迭代对象的 index</td>
        </tr>
    </table>
</body>
</html>